<?php

include_once ('com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once ('com/alibaba/openapi/client/entity/ByteArray.class.php');
include_once ('AlibabaPifatuanProductDetailListParam/AlibabaPifatuanProductDetailListProductPriceRange.class.php');

class AlibabaPifatuanProductDetailListProductSaleInfo extends SDKDomain {

       	
    private $amountOnSale;
    
        /**
    * @return 可售数量，国际站无需关注此字段
    */
        public function getAmountOnSale() {
        return $this->amountOnSale;
    }
    
    /**
     * 设置可售数量，国际站无需关注此字段     
     * @param Double $amountOnSale     
     * 参数示例：<pre>null</pre>     
     * 此参数必填     */
    public function setAmountOnSale( $amountOnSale) {
        $this->amountOnSale = $amountOnSale;
    }
    
        	
    private $batchNumber;
    
        /**
    * @return 每批数量，默认为空或者非零值，该属性不为空时sellunit为必填
    */
        public function getBatchNumber() {
        return $this->batchNumber;
    }
    
    /**
     * 设置每批数量，默认为空或者非零值，该属性不为空时sellunit为必填     
     * @param Integer $batchNumber     
     * 参数示例：<pre>null</pre>     
     * 此参数必填     */
    public function setBatchNumber( $batchNumber) {
        $this->batchNumber = $batchNumber;
    }
    
        	
    private $channelPrice;
    
        /**
    * @return 
    */
        public function getChannelPrice() {
        return $this->channelPrice;
    }
    
    /**
     * 设置     
     * @param Double $channelPrice     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setChannelPrice( $channelPrice) {
        $this->channelPrice = $channelPrice;
    }
    
        	
    private $consignPrice;
    
        /**
    * @return 
    */
        public function getConsignPrice() {
        return $this->consignPrice;
    }
    
    /**
     * 设置     
     * @param Double $consignPrice     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setConsignPrice( $consignPrice) {
        $this->consignPrice = $consignPrice;
    }
    
        	
    private $cpsSuggestPrice;
    
        /**
    * @return 
    */
        public function getCpsSuggestPrice() {
        return $this->cpsSuggestPrice;
    }
    
    /**
     * 设置     
     * @param Double $cpsSuggestPrice     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setCpsSuggestPrice( $cpsSuggestPrice) {
        $this->cpsSuggestPrice = $cpsSuggestPrice;
    }
    
        	
    private $deliveryLimit;
    
        /**
    * @return 
    */
        public function getDeliveryLimit() {
        return $this->deliveryLimit;
    }
    
    /**
     * 设置     
     * @param Integer $deliveryLimit     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setDeliveryLimit( $deliveryLimit) {
        $this->deliveryLimit = $deliveryLimit;
    }
    
        	
    private $invReduceType;
    
        /**
    * @return 
    */
        public function getInvReduceType() {
        return $this->invReduceType;
    }
    
    /**
     * 设置     
     * @param String $invReduceType     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setInvReduceType( $invReduceType) {
        $this->invReduceType = $invReduceType;
    }
    
        	
    private $minOrderQuantity;
    
        /**
    * @return 
    */
        public function getMinOrderQuantity() {
        return $this->minOrderQuantity;
    }
    
    /**
     * 设置     
     * @param Integer $minOrderQuantity     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setMinOrderQuantity( $minOrderQuantity) {
        $this->minOrderQuantity = $minOrderQuantity;
    }
    
        	
    private $mixWholeSale;
    
        /**
    * @return 
    */
        public function getMixWholeSale() {
        return $this->mixWholeSale;
    }
    
    /**
     * 设置     
     * @param Boolean $mixWholeSale     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setMixWholeSale( $mixWholeSale) {
        $this->mixWholeSale = $mixWholeSale;
    }
    
        	
    private $priceAuth;
    
        /**
    * @return 
    */
        public function getPriceAuth() {
        return $this->priceAuth;
    }
    
    /**
     * 设置     
     * @param Boolean $priceAuth     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setPriceAuth( $priceAuth) {
        $this->priceAuth = $priceAuth;
    }
    
        	
    private $priceRanges;
    
        /**
    * @return 
    */
        public function getPriceRanges() {
        return $this->priceRanges;
    }
    
    /**
     * 设置     
     * @param array include @see AlibabaPifatuanProductDetailListProductPriceRange[] $priceRanges     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setPriceRanges(AlibabaPifatuanProductDetailListProductPriceRange $priceRanges) {
        $this->priceRanges = $priceRanges;
    }
    
        	
    private $quoteType;
    
        /**
    * @return 
    */
        public function getQuoteType() {
        return $this->quoteType;
    }
    
    /**
     * 设置     
     * @param Integer $quoteType     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setQuoteType( $quoteType) {
        $this->quoteType = $quoteType;
    }
    
        	
    private $retailprice;
    
        /**
    * @return 
    */
        public function getRetailprice() {
        return $this->retailprice;
    }
    
    /**
     * 设置     
     * @param Double $retailprice     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setRetailprice( $retailprice) {
        $this->retailprice = $retailprice;
    }
    
        	
    private $saleType;
    
        /**
    * @return 
    */
        public function getSaleType() {
        return $this->saleType;
    }
    
    /**
     * 设置     
     * @param String $saleType     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setSaleType( $saleType) {
        $this->saleType = $saleType;
    }
    
        	
    private $sellunit;
    
        /**
    * @return 
    */
        public function getSellunit() {
        return $this->sellunit;
    }
    
    /**
     * 设置     
     * @param String $sellunit     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setSellunit( $sellunit) {
        $this->sellunit = $sellunit;
    }
    
        	
    private $supportOnlineTrade;
    
        /**
    * @return 
    */
        public function getSupportOnlineTrade() {
        return $this->supportOnlineTrade;
    }
    
    /**
     * 设置     
     * @param Boolean $supportOnlineTrade     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setSupportOnlineTrade( $supportOnlineTrade) {
        $this->supportOnlineTrade = $supportOnlineTrade;
    }
    
        	
    private $tax;
    
        /**
    * @return 
    */
        public function getTax() {
        return $this->tax;
    }
    
    /**
     * 设置     
     * @param String $tax     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setTax( $tax) {
        $this->tax = $tax;
    }
    
        	
    private $unit;
    
        /**
    * @return 
    */
        public function getUnit() {
        return $this->unit;
    }
    
    /**
     * 设置     
     * @param String $unit     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setUnit( $unit) {
        $this->unit = $unit;
    }
    
        	
    private $pifaPrice;
    
        /**
    * @return 精选货源批发价
    */
        public function getPifaPrice() {
        return $this->pifaPrice;
    }
    
    /**
     * 设置精选货源批发价     
     * @param Double $pifaPrice     
     * 参数示例：<pre>10.00</pre>     
     * 此参数必填     */
    public function setPifaPrice( $pifaPrice) {
        $this->pifaPrice = $pifaPrice;
    }
    
        	
    private $jxhyPfPrice;
    
        /**
    * @return 精选货源批发价
    */
        public function getJxhyPfPrice() {
        return $this->jxhyPfPrice;
    }
    
    /**
     * 设置精选货源批发价     
     * @param Double $jxhyPfPrice     
     * 参数示例：<pre>10.00</pre>     
     * 此参数必填     */
    public function setJxhyPfPrice( $jxhyPfPrice) {
        $this->jxhyPfPrice = $jxhyPfPrice;
    }
    
        	
    private $multipleConsignPrice;
    
        /**
    * @return 分销严选多件下单价格（单位：元）
    */
        public function getMultipleConsignPrice() {
        return $this->multipleConsignPrice;
    }
    
    /**
     * 设置分销严选多件下单价格（单位：元）     
     * @param Double $multipleConsignPrice     
     * 参数示例：<pre>10.00</pre>     
     * 此参数必填     */
    public function setMultipleConsignPrice( $multipleConsignPrice) {
        $this->multipleConsignPrice = $multipleConsignPrice;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "amountOnSale", $this->stdResult )) {
    				$this->amountOnSale = $this->stdResult->{"amountOnSale"};
    			}
    			    		    				    			    			if (array_key_exists ( "batchNumber", $this->stdResult )) {
    				$this->batchNumber = $this->stdResult->{"batchNumber"};
    			}
    			    		    				    			    			if (array_key_exists ( "channelPrice", $this->stdResult )) {
    				$this->channelPrice = $this->stdResult->{"channelPrice"};
    			}
    			    		    				    			    			if (array_key_exists ( "consignPrice", $this->stdResult )) {
    				$this->consignPrice = $this->stdResult->{"consignPrice"};
    			}
    			    		    				    			    			if (array_key_exists ( "cpsSuggestPrice", $this->stdResult )) {
    				$this->cpsSuggestPrice = $this->stdResult->{"cpsSuggestPrice"};
    			}
    			    		    				    			    			if (array_key_exists ( "deliveryLimit", $this->stdResult )) {
    				$this->deliveryLimit = $this->stdResult->{"deliveryLimit"};
    			}
    			    		    				    			    			if (array_key_exists ( "invReduceType", $this->stdResult )) {
    				$this->invReduceType = $this->stdResult->{"invReduceType"};
    			}
    			    		    				    			    			if (array_key_exists ( "minOrderQuantity", $this->stdResult )) {
    				$this->minOrderQuantity = $this->stdResult->{"minOrderQuantity"};
    			}
    			    		    				    			    			if (array_key_exists ( "mixWholeSale", $this->stdResult )) {
    				$this->mixWholeSale = $this->stdResult->{"mixWholeSale"};
    			}
    			    		    				    			    			if (array_key_exists ( "priceAuth", $this->stdResult )) {
    				$this->priceAuth = $this->stdResult->{"priceAuth"};
    			}
    			    		    				    			    			if (array_key_exists ( "priceRanges", $this->stdResult )) {
    			$priceRangesResult=$this->stdResult->{"priceRanges"};
    				$object = json_decode ( json_encode ( $priceRangesResult ), true );
					$this->priceRanges = array ();
					for($i = 0; $i < count ( $object ); $i ++) {
						$arrayobject = new ArrayObject ( $object [$i] );
						$AlibabaPifatuanProductDetailListProductPriceRangeResult=new AlibabaPifatuanProductDetailListProductPriceRange();
						$AlibabaPifatuanProductDetailListProductPriceRangeResult->setArrayResult($arrayobject );
						$this->priceRanges [$i] = $AlibabaPifatuanProductDetailListProductPriceRangeResult;
					}
    			}
    			    		    				    			    			if (array_key_exists ( "quoteType", $this->stdResult )) {
    				$this->quoteType = $this->stdResult->{"quoteType"};
    			}
    			    		    				    			    			if (array_key_exists ( "retailprice", $this->stdResult )) {
    				$this->retailprice = $this->stdResult->{"retailprice"};
    			}
    			    		    				    			    			if (array_key_exists ( "saleType", $this->stdResult )) {
    				$this->saleType = $this->stdResult->{"saleType"};
    			}
    			    		    				    			    			if (array_key_exists ( "sellunit", $this->stdResult )) {
    				$this->sellunit = $this->stdResult->{"sellunit"};
    			}
    			    		    				    			    			if (array_key_exists ( "supportOnlineTrade", $this->stdResult )) {
    				$this->supportOnlineTrade = $this->stdResult->{"supportOnlineTrade"};
    			}
    			    		    				    			    			if (array_key_exists ( "tax", $this->stdResult )) {
    				$this->tax = $this->stdResult->{"tax"};
    			}
    			    		    				    			    			if (array_key_exists ( "unit", $this->stdResult )) {
    				$this->unit = $this->stdResult->{"unit"};
    			}
    			    		    				    			    			if (array_key_exists ( "pifaPrice", $this->stdResult )) {
    				$this->pifaPrice = $this->stdResult->{"pifaPrice"};
    			}
    			    		    				    			    			if (array_key_exists ( "jxhyPfPrice", $this->stdResult )) {
    				$this->jxhyPfPrice = $this->stdResult->{"jxhyPfPrice"};
    			}
    			    		    				    			    			if (array_key_exists ( "multipleConsignPrice", $this->stdResult )) {
    				$this->multipleConsignPrice = $this->stdResult->{"multipleConsignPrice"};
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    			if (array_key_exists ( "amountOnSale", $this->arrayResult )) {
    			$this->amountOnSale = $arrayResult['amountOnSale'];
    			}
    		    	    			    		    			if (array_key_exists ( "batchNumber", $this->arrayResult )) {
    			$this->batchNumber = $arrayResult['batchNumber'];
    			}
    		    	    			    		    			if (array_key_exists ( "channelPrice", $this->arrayResult )) {
    			$this->channelPrice = $arrayResult['channelPrice'];
    			}
    		    	    			    		    			if (array_key_exists ( "consignPrice", $this->arrayResult )) {
    			$this->consignPrice = $arrayResult['consignPrice'];
    			}
    		    	    			    		    			if (array_key_exists ( "cpsSuggestPrice", $this->arrayResult )) {
    			$this->cpsSuggestPrice = $arrayResult['cpsSuggestPrice'];
    			}
    		    	    			    		    			if (array_key_exists ( "deliveryLimit", $this->arrayResult )) {
    			$this->deliveryLimit = $arrayResult['deliveryLimit'];
    			}
    		    	    			    		    			if (array_key_exists ( "invReduceType", $this->arrayResult )) {
    			$this->invReduceType = $arrayResult['invReduceType'];
    			}
    		    	    			    		    			if (array_key_exists ( "minOrderQuantity", $this->arrayResult )) {
    			$this->minOrderQuantity = $arrayResult['minOrderQuantity'];
    			}
    		    	    			    		    			if (array_key_exists ( "mixWholeSale", $this->arrayResult )) {
    			$this->mixWholeSale = $arrayResult['mixWholeSale'];
    			}
    		    	    			    		    			if (array_key_exists ( "priceAuth", $this->arrayResult )) {
    			$this->priceAuth = $arrayResult['priceAuth'];
    			}
    		    	    			    		    		if (array_key_exists ( "priceRanges", $this->arrayResult )) {
    		$priceRangesResult=$arrayResult['priceRanges'];
    			$this->priceRanges = new AlibabaPifatuanProductDetailListProductPriceRange();
    			$this->priceRanges->setStdResult ( $priceRangesResult);
    		}
    		    	    			    		    			if (array_key_exists ( "quoteType", $this->arrayResult )) {
    			$this->quoteType = $arrayResult['quoteType'];
    			}
    		    	    			    		    			if (array_key_exists ( "retailprice", $this->arrayResult )) {
    			$this->retailprice = $arrayResult['retailprice'];
    			}
    		    	    			    		    			if (array_key_exists ( "saleType", $this->arrayResult )) {
    			$this->saleType = $arrayResult['saleType'];
    			}
    		    	    			    		    			if (array_key_exists ( "sellunit", $this->arrayResult )) {
    			$this->sellunit = $arrayResult['sellunit'];
    			}
    		    	    			    		    			if (array_key_exists ( "supportOnlineTrade", $this->arrayResult )) {
    			$this->supportOnlineTrade = $arrayResult['supportOnlineTrade'];
    			}
    		    	    			    		    			if (array_key_exists ( "tax", $this->arrayResult )) {
    			$this->tax = $arrayResult['tax'];
    			}
    		    	    			    		    			if (array_key_exists ( "unit", $this->arrayResult )) {
    			$this->unit = $arrayResult['unit'];
    			}
    		    	    			    		    			if (array_key_exists ( "pifaPrice", $this->arrayResult )) {
    			$this->pifaPrice = $arrayResult['pifaPrice'];
    			}
    		    	    			    		    			if (array_key_exists ( "jxhyPfPrice", $this->arrayResult )) {
    			$this->jxhyPfPrice = $arrayResult['jxhyPfPrice'];
    			}
    		    	    			    		    			if (array_key_exists ( "multipleConsignPrice", $this->arrayResult )) {
    			$this->multipleConsignPrice = $arrayResult['multipleConsignPrice'];
    			}
    		    	    		}
 
   
}
?>